package cn.ac.cintcm.prespring.cluster.set;

import org.apache.solr.core.Config;

import com.hs.log.HsLogger;

public class ZZsimFj  extends BaseSimFj{
	private static final HsLogger logger = HsLogger.getLogger(ZZsimFj.class.getName());
	public ZZsimFj(float simRate) {
		super(simRate);
	}

	static String textFromUrl=Config.getInstanceDir()+ "data/originalData/PRES_FJ_ZZS.txt";
	static String textToUrl=Config.getInstanceDir()+ "data/similars/PRES_FJ_ZZSim0.txt";
	
	public static void main(String[] args) throws Exception{	
		generateZZsimilar();
	}
	
	public static void generateZZsimilar() throws Exception{
		logger.info("to generate PRES_FJ_ZZSim0.txt");
		long start=System.currentTimeMillis();
		BaseSimFj simFj=new ZZsimFj(0.6f);
		simFj.setTextFromUrl(textFromUrl);
		simFj.setTextToUrl(textToUrl);
		simFj.writeSimilarityToText(simFj.calcSimilarity(simFj.readFromText()));
		long end=System.currentTimeMillis();
		logger.info("calculate zhuzhi similarity---use:"+(end-start));
	}
}
